﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OnlineMovieTicket.Data.IRepository;
using OnlineMovieTicket.Data.Repository;
using OnlineMovieTicket.Model;

namespace OnlineMovieTicket.Services.Services
{
    public class CinemaTimeTableService : IServices.ICinemaTimeTableService
    {
        ICinemaTimeTableRepository CinemaTimeTableRepo;

        public CinemaTimeTableService()
        {
            CinemaTimeTableRepo = new CinemaTimeTableRepository();
        }

        public List<CinemaTimeTable> GetTimeTableByCinemaHall(int cinemaHallID)
        {            
            return CinemaTimeTableRepo.GetTimeTableByCinemaHall(cinemaHallID);
        }

        public List<CinemaTimeTable> GetAvailableTimeTableByCinemaHall(int cinemaHallID, DateTime showingDate)
        {
            return CinemaTimeTableRepo.GetAvailableTimeTableByCinemaHall(cinemaHallID, showingDate);
        }

        


    }
}
